<% form_for(@artist) do |f| %>
  <%= f.error_messages %>

<table border="0" cellspacing="5" cellpadding="5">
	<tr>
		<th> <%= @artist.name %></th>
	</tr>
	<tr>
		<td class="show_label"><label>Name</label></td>
		<td class="show_value"><%= f.text_field :name %></td>
	</tr>
	<tr>
		<td class="show_label"><label>Biography</label></td>
		<td class="show_value"><%= f.text_area :biography %></td>
	</tr>
	
	<tr>
		<th>Releases</th>
	</tr>
	<tr>
		<th>Title</th>
		<th>Type</th>
		<th>Description</th>
	</tr>




	<% @artist.records.each do |record| %>
		<tr>
			<td class="show_value"><%= record.name %></td>
			<td class="show_value">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
														 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<%= record.release_type %></td>
			<td class="show_value"><%= record.description %></td>
			<td class="show_value"><%= link_to_remote "Edit", :controller => "records", :url => "edit_record", :action => "edit_in_place" %></td>
		</tr>
	<% end %>

</table>


<p>
  <%= f.submit 'Update' %>
</p>

<% end %>